import layout from '@/layout/index.vue'
import type {RouteRecordRaw} from "vue-router";

const root = "computer"
const router: RouteRecordRaw[] = [
    {
        path: `/${root}/qrcode-manage`,
        name: 'qrcode-manage',
        meta: {
            title: '二维码管理',
            showMenu: true
        },
        component: layout,
        children: [
            {
                path: `/${root}/qrcode`,
                name: 'qrcode',
                meta: {
                    title: '宇谷二维码',
                    showMenu: true
                },
                component: () => import('@views/computer/qrcode-test-copy.vue')

            }]
    },
    {
        path: `/${root}/study/study-menu`,
        name: 'study-menu',
        meta: {
            title: 'study记录',
            showMenu: true
        },
        component: layout,
        children: [{
            path: `/${root}/study/study-setup-1`,
            name: 'study-setup-1',
            meta: {
                title: 'setup 01',
            },
            component: () => import('@/views/computer/study/study-setup-1.vue')

        }, {
            path: `/${root}/study/study-setup-2`,
            name: 'study-setup-2',
            meta: {
                title: 'setup 02',
            },
            component: () => import('@/views/computer/study/study-setup-2.vue')

        }, {
            path: `/${root}/study/study-04`,
            name: 'study-04',
            meta: {
                title: '春节倒计时',
                showMenu: true
            },
            component: () => import('@/views/computer/study/study-04.vue')

        }, {
            path: `/${root}/study/study-05`,
            name: 'study-05',
            meta: {
                title: 'study 04',
                showMenu: true
            },
            component: () => import('@/views/computer/study/study-05.vue')

        }, {
            path: `/${root}/study/study-06`,
            name: 'study-06',
            meta: {
                title: 'study 06',
                showMenu: true
            },
            component: () => import('@/views/computer/study/study-06.vue')

        }, {
            path: `/${ root }/study/study-07`,
            name: 'study-07',
            meta: {
                title: '测试模板',
                showMenu: true
            },
            component: () => import('@views/computer/study/TestPage.vue')

        }]
    }, {
        path: `/${root}/study/math`,
        name: 'math',
        meta: {
            title: '轩儿数学题',
            showMenu: true
        },
        component: () => import('@/views/computer/study/study-setup-3.vue')

    }
]

export default router